﻿using System;
using System.Collections.Generic;
using HR60_PanelSoft.Model.BaseModel;

namespace HR60_PanelSoft.Model
{
	/// <summary>
	/// 面板按键
	/// </summary>
	public class PanelButton
    {
		/// <summary>
		/// 显示名称
		/// </summary>
		public string displayName;

		/// <summary>
		/// 映射的设备,ref
		/// </summary>
		public string mappingDevice;

		/// <summary>
		/// 映射的场景,ref
		/// </summary>
		public string mappingScene;

		/// <summary>
		/// 映射的设备 ref to obj 
		/// </summary>
		/// <returns>The mapping device.</returns>
		public Device getMappingDevice()
		{
			return Device.find (mappingDevice);
		}

		/// <summary>
		/// 映射的场景 ref to obj 
		/// </summary>
		/// <returns>The mapping scene.</returns>
		public Scene getMappingScene()
		{
			return Scene.find (mappingScene);
		}
    }
}
